x86: Use per-domain irq-to-vector array when mapping GSIs
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Feb 2009 12:20:18 +0000 (12:20 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Feb 2009 12:20:18 +0000 (12:20 +0000)
Using the per-domain array enables single MSI vectors to be mapped.

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
xen/arch/x86/physdev.c

index 63ef08893bfc163da5f01ae3509290a0c468ed7f..794632c0536f80803caa01a0a63302f358febbac 100644 (file)
@@ -62,7 +62,7 @@ static int physdev_map_pirq(struct physdev_map_pirq *map)
                 ret = -EINVAL;
                 goto free_domain;
             }
-            vector = IO_APIC_VECTOR(map->index);
+            vector = domain_irq_to_vector(current->domain, map->index);
             if ( !vector )
             {
                 dprintk(XENLOG_G_ERR, "dom%d: map irq with no vector %d\n",